package com.jdrx.sw.sewage.beans.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel(value = "MaintenanceUpdateDTO", description = "维修保养申请")
public class MaintenanceUpdateDTO {
    @NotNull
    @ApiModelProperty(value = "主键id")
    private Long id;

    @NotNull
    @ApiModelProperty(value = "维保人id", required = true)
    private String maintenanceById;

    @NotNull
    @ApiModelProperty(value = "维保人", required = true)
    private String maintenanceBy;

    @NotNull
    @ApiModelProperty(value = "维保时间", required = true)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date maintenanceTime;

    @NotNull
    @ApiModelProperty(value = "保养/维修方式（保养/维修方式（紧固、清洁、标定、清洗、润滑、其他 /小修、中修、大修、其他 ）多个逗号分隔）英文逗号分隔 ", required = true)
    private String maintenanceType;

    @NotNull
    @ApiModelProperty(value = "设备照片（多个用英文逗号隔开）", required = true)
    private String attach;

    @NotNull
    @ApiModelProperty(value = "保养描述/维修描述", required = true)
    private String maintenanceDesc;

    @ApiModelProperty(value = "实际费用", required = true)
    private Double actualCost;
}